package cn.bandeqing.orderWorker.entity;

import com.mybatisflex.annotation.EnumValue;
import io.github.linpeilie.annotations.AutoEnumMapper;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
@AutoEnumMapper("value")
public enum OwStatus {

    wait(0, "等待接单"),
    erp_cancel(1, "后台取消"),
    erp_accept(2, "后台确认"),
    worker_refuse(3, "工作人员拒绝"),
    worker_accept(4, "工作人员接受"),
    timeout(5, "超时取消"),
    worker_accept_other_confirm(6, "小哥同意接单 他人已提前同意 把自己排除"),
    worker_other_confirm(7, "小哥确认接单 排除多余人员"),
    ;

    @EnumValue
    private final Integer value;

    private final String label;


}